package com.lqq.api;

import com.lqq.domain.request.LoginByPassRequest;
import com.lqq.domain.response.BaseResponse;
import com.lqq.domain.response.LoginByPassResponse;
import com.lqq.util.HttpUtil;

import java.io.IOException;

public class AuthApi {


    public static BaseResponse login(LoginByPassRequest request) throws IOException {
        BaseResponse baseResponse = HttpUtil.post("/auth/user/login/pass",request);
        return baseResponse;
    }

    public static BaseResponse getCaptcha() throws IOException {
        return  HttpUtil.get("/auth/captcha/image");
    }
}
